package com.hf.lookatme;

import android.app.Activity;
import android.os.Bundle;

import com.hf.lookatme.Application_Mine;

/**
 * Created by JoeShiguang on 2015/5/14.
 */
public class Activity_Base extends Activity {

  private Application_Mine applicationMine;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    applicationMine = (Application_Mine) getApplicationContext();
    applicationMine.addActivityToAllActivity(this);
  }

  /**
   * 获取ApplicationMine
   * @return
   */
  public Application_Mine getApplicationMine() {

    if(applicationMine == null){
      applicationMine = (Application_Mine) getApplicationContext();
    }
    return applicationMine;
  }
}
